package org.jeecg.modules.business.outbound.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.business.outbound.entity.WmsOutReceiptTaskMaterial;
import org.jeecg.modules.business.outbound.entity.WmsOutReceiptTaskMaterialExport;
import org.jeecg.modules.business.outbound.entity.dto.WmsOutReceiptTaskDTO;
import org.jeecg.modules.business.outbound.vo.WmsOutReceiptTaskMaterialResponseVO;

import java.util.List;

/**
 * @Description: 出库任务-物料
 * @Author: jeecg-boot
 * @Date:   2023-08-09
 * @Version: V1.0
 */
public interface IWmsOutReceiptTaskMaterialService extends IService<WmsOutReceiptTaskMaterial> {

	/**
	 * 通过主表id查询子表数据
	 *
	 * @param mainId 主表id
	 * @return List<WmsOutReceiptTaskMaterial>
	 */
	public List<WmsOutReceiptTaskMaterial> selectByMainId(String mainId);

	/**
	 * 出库任务-物料主表ID分页查询
	 * @param page
	 * @param id
	 * @param name
	 * @param deviceType
	 * @return
	 */
    IPage<WmsOutReceiptTaskMaterialResponseVO> queryPageTaskMaterialByTaskId(IPage<WmsOutReceiptTaskMaterial> page, String id, String name, String deviceType,Integer unCompleted);


	/**
	 * 不分页查物料明细(导出用)
	 *
	 * @author DuSongyao
	 * @since 2024/1/8 19:34
	 * @param wmsOutReceiptTaskDTO
	 * @return java.util.List<org.jeecg.modules.business.outbound.entity.WmsOutReceiptTaskMaterial>
	 */
	List<WmsOutReceiptTaskMaterialExport> listOutMaterialExportByTask(WmsOutReceiptTaskDTO wmsOutReceiptTaskDTO);

	/**
	 * 通过任务id查询出库任务物料信息带灯信息
	 * @param id
	 * @return
	 */
	List<WmsOutReceiptTaskMaterialResponseVO> getListByTaskIdWithLight(String id,String code,Boolean unCompleted,String batchCode);
}
